﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyKhachSan.UserControls
{
    public partial class ThayDoiQuiDinh : UserControl
    {
        public ThayDoiQuiDinh()
        {
            InitializeComponent();
        }
        UserControls.PhuThu ucPhuThu;
        UserControls.ThamSo ucThamSo;
        UserControls.LoaiPhong ucLoaiPhong;
        UserControls.LoaiKhachHang ucLoaiKhachHang;
        private void ThayDoiQuiDinh_Load(object sender, EventArgs e)
        {
            ucPhuThu = new UserControls.PhuThu();
            pnlContent.Controls.Add(ucPhuThu);
        }

        private void btnPhuThu_Click(object sender, EventArgs e)
        {
            ucPhuThu = new UserControls.PhuThu();
            pnlContent.Controls.Clear();
            pnlContent.Controls.Add(ucPhuThu);
        }

        private void btnThamSo_Click(object sender, EventArgs e)
        {
            ucThamSo = new UserControls.ThamSo();
            pnlContent.Controls.Clear();
            pnlContent.Controls.Add(ucThamSo);
        }

        private void btnLoaiPhong_Click(object sender, EventArgs e)
        {
            ucLoaiPhong = new UserControls.LoaiPhong();
            pnlContent.Controls.Clear();
            pnlContent.Controls.Add(ucLoaiPhong);
        }

        private void btnLoaiKhachHang_Click(object sender, EventArgs e)
        {
            ucLoaiKhachHang = new UserControls.LoaiKhachHang();
            pnlContent.Controls.Clear();
            pnlContent.Controls.Add(ucLoaiKhachHang);
        }



    }
}
